Skip to content

feat: add test_mode module for shared test mode utilities#83

Merged
Jammy2211 merged 1 commit intomainfrom
feature/move-test-mode-to-autoconf
Apr 7, 2026
Merged

feat: add test_mode module for shared test mode utilities#83
Jammy2211 merged 1 commit intomainfrom
feature/move-test-mode-to-autoconf

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

Move test_mode_level() and is_test_mode() to autoconf so they can be used by any PyAuto library without cross-dependencies. Previously these lived in autofit, but autoarray needed them too and does not depend on autofit — causing CI failures.

API Changes

Added autoconf.test_mode module with test_mode_level() and is_test_mode(). See full details below.

Test Plan

  • All 71 PyAutoConf tests pass
Full API Changes (for automation & release notes)

Added

  • autoconf.test_mode.test_mode_level() — returns PYAUTOFIT_TEST_MODE env var as int (0-3)
  • autoconf.test_mode.is_test_mode() — returns True if test_mode_level() > 0
  • Both also exported from autoconf top-level

🤖 Generated with Claude Code

Move test_mode_level() and is_test_mode() to autoconf so they can
be used by any PyAuto library without cross-dependencies. Previously
these lived in autofit, but autoarray needed them too and does not
depend on autofit.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant